package com.yaoxuguang.concurrence.reentrantlock.conditon;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.reentrantlock.conditon
 * @Description: 利用Conditon实现等待/通知
 * @date 2018年12月24日15:53
 */
public class MyThread extends Thread {
    private UseConditionWaitNotifyError conditionWaitNotify;

    public MyThread(UseConditionWaitNotifyError conditionWaitNotify) {
        this.conditionWaitNotify = conditionWaitNotify;
    }

    @Override
    public void run() {
        conditionWaitNotify.waitMehtod();
    }
}
